<template>
  <div class="content">
    <div>账号信息</div>
    <div class="box">
      <div class="head"><div class="label">头像</div><img src="/images/userIcon.png" alt=""></div>
      <div class="label">昵称<span class="value">{{ userInfo.nickname || '爱喝水的小熊' }}</span></div>
      <div class="label">账号<span class="value">{{ userInfo.username || '132****9888' }}</span></div>
      <div class="label">设置/修改密码<span class="value">**************</span></div>
      <div class="label">注销账号<span class="value">注销</span></div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useStore } from "vuex";
import { computed } from "vue";
const store = useStore();
const userInfo = computed(() => {
  return store.getters["userStore/userInfo"];
});

</script>

<style lang="less" scoped>
@import "./index.less";
</style>
